/**
 * Copyright © 2009 Qasky. All rights reserved.
 *
 * 常用的变量统一管理
 *
 * @author Wang Hongya
 * @version 0.0.0 2019/12/23
 *
 * History:
 * (author, date, desc)
 * (Wang Hongya, 20191223, 添加注释)
 */

const commonVariable = {
    toolListAll:[
        {name:'光激励模块',tid:1001,enName:'LSM'},
        {name:'多波长光激励模块',tid:1002,enName:'MLSM'},
        {name:'光响应模块',tid:1003,enName:'LRM'},
    ],
    commandListAll:[
        {name:'触发模式',cmd_name:'trig_src',type:'isSelect',unit:'',belong:['MLSM','LSM'],value:undefined,decimalNum:0},
        {name:'外触发电平',cmd_name:'ext_trig_type',type:'isSelect',unit:'',belong:['MLSM','LSM'],value:undefined,decimalNum:2},
        {name:'偏置电压',cmd_name:'bias',type:'isNum',unit:'',belong:['LSM'],value:'',decimalNum:2},
        {name:'波长',cmd_name:'wave_len',type:'isNum',unit:'',belong:['LRM','MLSM','LSM'],value:'',decimalNum:2},
        {name:'重复频率',cmd_name:'freq',type:'isNum',unit:'',belong:['MLSM','LSM'],value:'',decimalNum:2},
        {name:'脉宽',cmd_name:'pulse_width',type:'isNum',unit:'',belong:['MLSM','LSM'],value:'',decimalNum:2},
        {name:'连续光输出功率',cmd_name:'cw_output_power',type:'isNum',unit:'dBm',belong:['MLSM','LSM'],value:'',decimalNum:2},
        {name:'光输出衰减',cmd_name:'output_evoa',type:'isNum',unit:'',belong:['LSM'],value:'',decimalNum:2},
        {name:'激光输出启停',cmd_name:'ld_output',type:'isSelect',unit:'',belong:['MLSM','LSM'],value:undefined,decimalNum:0},
        {name:'功率单位',cmd_name:'power_unit',type:'isSelect',unit:'',belong:['LRM'],value:undefined,decimalNum:2},
        {name:'功率采样周期',cmd_name:'power_sample_period',type:'isNum',unit:'ms',belong:['LRM'],value:'',decimalNum:2},
        {name:'功率采样点数量',cmd_name:'power_sample_num',type:'isNum',unit:'',belong:['LRM'],value:'',decimalNum:2},
    ],
    functionTypeList: [
        { value: "set", label: "set" },
        { value: "get", label: "get" }
    ],
    powerUnitList: [
        { value: 0, name: "dBm" },
        { value: 1, name: "mW" }
    ],
    checkItemALL: [
        {value: 1001, name: "发送端时域一致性"},
        {value: 1002, name: "发送端频域一致性"},
        {value: 1003, name: "信号态平均光子数及光强涨落"},
        {value: 1004, name: "诱骗态平均光子数及光强涨落"},
        {value: 1005, name: "工作模式下平均光子数及光强涨落测试"},
        {value: 1006, name: "发送端诱骗态脉冲触发比例"},
        {value: 1007, name: "光强度调制器插入损耗、消光比、半波电压"},
        {value: 1008, name: "光强度调制器调制时域一致性"},
        {value: 1009, name: "光强度调制器调制频域一致性"},
        {value: 1010, name: "相位调制器插入损耗"},
        {value: 1011, name: "相位调制器调制时域一致性"},
        {value: 1013, name: "编码模块时域维度测试"},
        {value: 1014, name: "编码模块频域维度测试"},
        {value: 1015, name: "编码模块偏振维度测试"},
        {value: 1016, name: " 编码模块强度维度测试"},
        {value: 1018, name: " 探测器探测效率"},
        {value: 1019, name: " 探测器暗计数概率"},
        {value: 1020, name: " 探测器后脉冲概率"},
        {value: 1021, name: " 探测器死时间"},
        {value: 1022, name: " 探测器输出信号参数"},
    ],
    trigSrcType: [
        {
            value: 0,
            name: "内触发"
        },
        {
            value: 1,
            name: "外触发"
        } ],
    extTrigTypeList: [
        {
            value: 0,
            name: "LVTTL"
        },
        {
            value: 1,
            name: "LVPECL"
        },
        {
            value: 2,
            name: "CML"
        }
    ],
    outputList: [
        {
            value: 0,
            name: "停止输出"
        },
        {
            value: 2,
            name: "启动输出"
        }
    ],
};

export default commonVariable;

